from rest_framework.serializers import ModelSerializer
from dictionary.models import Dictionary, DictionaryDetail


class DictionarySerializer(ModelSerializer):
    class Meta:
        model = Dictionary
        fields = '__all__'


class DictionaryDetailSerializer(ModelSerializer):
    class Meta:
        model = DictionaryDetail
        fields = '__all__'
